//
//  CYLUser.h
//  贝塞尔曲线
//
//  Created by 宜必鑫科技 on 2017/11/1.
//  Copyright © 2017年 宜必鑫科技. All rights reserved.
//
// 5. 如何让自己的类用 copy 修饰符？如何重写带 copy 关键字的 setter？
#import <Foundation/Foundation.h>
#import "Teacher.h"
typedef NS_ENUM(NSUInteger,CYLSex)
{
    CYLSexMan,
    CYLSexWoman,
};

@interface CYLUser : NSObject

@property (nonatomic, copy ,readonly) NSString *name;
@property (nonatomic, assign, readonly) NSUInteger age;
@property (nonatomic, assign ,readonly) CYLSex sex;
@property (nonatomic, copy) Teacher *teacher;

- (instancetype)initWithName:(NSString *)name age:(NSUInteger)age sex:(CYLSex)sex;

@end
